﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="InsertUpdate.aspx.cs" Inherits="HCFramework.Product.ProductManage.InsertUpdate" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="../CategoryManage/ChooseProductCategory.ascx" TagName="ChooseProductCategory"
    TagPrefix="uc1" %>
<%@ Register src="ChoosePropertyAndFilter.ascx" tagname="ChoosePropertyAndFilter" tagprefix="uc2" %>
<%@ Register src="../ManufacturerManage/ChooseManufacturer.ascx" tagname="ChooseManufacturer" tagprefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="groupHeader">
        Insert/update product
    </div>
    <div>
        <table>
            <tr>
                <td width="110" align="right">
                    <b>Category:</b>
                </td>
                <td>
                    <asp:Literal ID="litCategoryName" runat="server"></asp:Literal>
                </td>
            </tr>
            
            <tr>
                <td align="right">
                    <b>Product code:</b>
                </td>
                <td>
                    <asp:TextBox ID="txtProductCode" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <b>Product name:</b>
                </td>
                <td>
                    <asp:TextBox ID="txtProductName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <b>Manufacturer:</b>
                </td>
                <td>
                    
                    <uc3:ChooseManufacturer ID="ChooseManufacturer1" runat="server" />
                    
                </td>
            </tr>
            <tr>
                <td align="right">
                    <b>Quantity:</b>
                </td>
                <td>
                    <asp:TextBox ID="txtQuantity" Text="1" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <b>Unit price:</b>
                </td>
                <td>
                    <asp:TextBox ID="txtPrice" Text="0" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <b>Currency code:</b>
                </td>
                <td>
                    <asp:TextBox ID="txtCurrencyCode" Text="VND" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <b>Is Active:</b>
                </td>
                <td>
                    <asp:CheckBox ID="chkIsActive" Checked="true" runat="server" />
                </td>
            </tr>
            <tr>
                <td valign="top" align="right">
                    <b>Properties:</b>
                </td>
                <td>
                    <uc2:ChoosePropertyAndFilter ID="ChoosePropertyAndFilter1" runat="server" />
                </td>
            </tr>
            <tr>
                <td valign="top" align="right">
                    <b>Description:</b>
                </td>
                <td>
                    <telerik:RadEditor ID="RadEditor1" runat="server" Width="100%">
                        <Content>        
        
                        </Content>
                        <ImageManager DeletePaths="~/Image/Upload" UploadPaths="~/Image/Upload" ViewPaths="~/Image/Upload"
                            MaxUploadFileSize="50000000" />
                        <DocumentManager DeletePaths="~/File/Document" UploadPaths="~/File/Document" ViewPaths="~/File/Document"
                            MaxUploadFileSize="2004800" SearchPatterns="*.*" />
                        <FlashManager DeletePaths="~/File/Flash" MaxUploadFileSize="50000000" UploadPaths="~/File/Flash"
                            ViewPaths="~/File/Flash" />
                        <MediaManager DeletePaths="~/File/Media" MaxUploadFileSize="100000000" UploadPaths="~/File/Media"
                            ViewPaths="~/File/Media" />
                        <TemplateManager DeletePaths="~/File/TemplateHtml" UploadPaths="~/File/TemplateHtml"
                            ViewPaths="~/File/TemplateHtml" />
                    </telerik:RadEditor>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    
                </td>
                <td>
                    <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" />
                    <asp:Button ID="btnCancel" runat="server" 
                        OnClientClick="return confirm('Are you sure to cancel?');" Text="Cancel" 
                        onclick="btnCancel_Click" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
